package com.yeskery.nut.webhook.config;

import com.yeskery.nut.annotation.bean.Configuration;
import com.yeskery.nut.application.NutWebConfigure;
import com.yeskery.nut.core.WebConfigurer;
import com.yeskery.nut.view.WebViewConfigure;

/**
 * web配置
 * @author YESKERY
 * 2023/10/13
 */
@Configuration
public class WebConfig implements WebConfigurer {
    @Override
    public void configure(NutWebConfigure nutWebConfigure) {
        nutWebConfigure.addStaticResourceDirs("classpath:resource");
        nutWebConfigure.addStaticResourcePaths("/static");
        WebViewConfigure webViewConfigure = nutWebConfigure.getWebViewConfigure();
        webViewConfigure.setGlobalPrefix("html");
        webViewConfigure.setGlobalPostfix("btl");
    }
}
